
<?php
$keyword = $sf_request->hasParameter('search') ? $sf_request->getParameter('search') : __('Otsingu sõna');
?>

<div class="search">
	<form method="get" action="<?php include_component('linker', 'searchLink') ?>">
		<div class="searchinput">
				<input class="searchin" type="text" onblur="if(this.value=='')this.value='<?php echo $keyword ?>'" onfocus="if(this.value=='<?php echo $keyword ?>')this.value=''" value="<?php echo $keyword ?>" name="search" maxlength="30" />

		</div>
		<div class="searchbutton" id="searchbutton">
			<div class="buttontext"><a href="#"><?php echo __('Otsi') ?></a></div>
		</div>
	</form>
</div>
<div class="clear"></div>
<script type="text/javascript">
	jQuery('#searchbutton').click(function(e){
		e.preventDefault();
			$(this).parents('form').submit();
		return false;
	});
</script>